
/********

Project - College affirmative action bans and health risk behaviors

Dataset - News sourcse dataset

Version - May 28, 2019 (for replication archive)

Description - This file contains the code used to generate S1 Fig. See the Figure notes for further details on how
we quantified news mentions of affirmative action bans in each state. The main dataset to conduct this analysis is
"news_data.dta"

********/


**SET FILE PATHS
global data "[YOUR FILEPATH]"  /*calls in all data used for the project */
global outreg "[YOUR FILEPATH]"  /*file to house data output*/

**OPEN FILE
use "$data/news_data.dta", clear

**GENERATE GRAPH 
*(the published version shows a 4 year period around the policy, here we show a 6 year period. The reason 
*to restrict this to 5-6 years is to ensure balance. i.e., roughly the same number of states represented in each event
*year in the figure. GA excluded because no ban was implemented there. 

lgraph num y if y>=-6&y<=6&state~="Georgia"
